package com.business.system.bean;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:43
 * @description:
 */
@Table(name = "GOODS_STORE_DETAIL")
public class GoodsStoreDetailBean extends ModelBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "RESOURCE_ID", type = Type.变长文本, description = "来源", size = 32)
	private String resourceId;

	@Column(name = "GOODS_ID", type = Type.变长文本, description = "商品id", size = 32)
	private String goodsId;

	@Column(name = "TYPE", type = Type.数字整型, description = "出入库类型 1-入库 2-出库", size = 1)
	private int type;

	@Column(name = "DETAIL_TYPE", type = Type.数字整型, description = "二级类型1-日常业务 2-盘盈 3-销售 ...", size = 1)
	private int detailType;

	@Column(name = "STOCK_COUNT", type = Type.数字整型, description = "当前库存", size = 11)
	private int stockCount;

	@Column(name = "CHANGE_COUNT", type = Type.数字整型, description = "变化的库存量", size = 11)
	private int changeCount;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getDetailType() {
		return detailType;
	}

	public void setDetailType(int detailType) {
		this.detailType = detailType;
	}

	public int getStockCount() {
		return stockCount;
	}

	public void setStockCount(int stockCount) {
		this.stockCount = stockCount;
	}

	public int getChangeCount() {
		return changeCount;
	}

	public void setChangeCount(int changeCount) {
		this.changeCount = changeCount;
	}

	@Override
	public String toString() {
		return "GoodsStoreDetailBean{" +
				"id='" + id + '\'' +
				", resouceId='" + resourceId + '\'' +
				", goodsId='" + goodsId + '\'' +
				", type=" + type +
				", detailType=" + detailType +
				", stockCount=" + stockCount +
				", changeCount=" + changeCount +
				'}';
	}
}